<?php
//Duong dan den thu muc chua ung dung
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH',
realpath(dirname(__FILE__) . '/application'));

// Define application environment
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV',
(getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV')
						   : 'developer'));
	
//Nap duong dan den cac thu vien se su dung trong ung dung
set_include_path(implode(PATH_SEPARATOR, array(
dirname(__FILE__) . '/library',
get_include_path(),
)));

//---------- KHAI BAO DUONG DAN THUC DEN CAC THU MUC -----------
//Duong dan den thu muc /public
define('PUBLIC_PATH', realpath(dirname(__FILE__) . '/public'));
// define('TEMP_PATH', PUBLIC_PATH . '/tmp');
define('FILES_PATH', PUBLIC_PATH . '/files');
define('PUBLIC_IMG_PATH', PUBLIC_PATH . '/templates/public/system/img');
define('SLIDE_PATH', PUBLIC_PATH . '/templates/public/system/img/slider');
define('SCRIPTS_PATH', PUBLIC_PATH . '/scripts/');

//Duong dan den thu muc /templates
define('TEMPLATE_PATH', PUBLIC_PATH . '/templates');

//---------- KHAI BAO DUONG DAN URL DEN CAC THU MUC -----------
// Duong dan den thu muc ung dung
define('APPLICATION_URL','');
define('SCRIPTS_URL', APPLICATION_URL . '/public/scripts');

//Duong dan den thu muc /templates
define('TEMPLATE_URL', '/public/templates');
define('FILES_URL', APPLICATION_URL . '/public/files');
define('SLIDE_URL', APPLICATION_URL. '/public/templates/public/system/img/slider');
define('PUBLIC_IMG_URL', APPLICATION_URL. '/public/templates/public/system/img');